package com.shkco.xbjcc.feign;


import com.shkco.result.JSONResult;
import com.shkco.xbjcc.fallback.CourseMarketServiceFallbackFactory;
import com.shkco.xbjcc.fallback.CourseUserLearnServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@FeignClient(contextId = "courseUserLearn",value = "service-course",fallbackFactory = CourseUserLearnServiceFallbackFactory.class)
public interface CourseUserLearnService {

    @RequestMapping(value = "/courseUserLearn/{courseId}/{loginId}",method = RequestMethod.GET)
    JSONResult findLoginIdAndCourseId(@PathVariable("courseId")Long courseId,@PathVariable("loginId")Long loginId);

}
